<template>

    <mi-table :list="list">

        <template #status="{row}">
            <span v-if="row.status == 1">已释放</span>
            <span v-else>冻结中</span>
        </template>

    </mi-table>

</template>

<script setup lang="ts">


import {reactive, watch} from "vue";
import List from "@/model/list";

const props = withDefaults(defineProps<{
    where?:Record<string, any>
}>(),{
})

const list = reactive(new List({
    where: props.where ? {...props.where} : {},
    url: `/store.dist/rewardLogPaginate`,
    size:'small',
    columns:[
        {name: "amount", title:'金额'},
        {name: "note", title:'类型'},
        {name: "status", title:'状态', type:'slot', slot:'status'},
        {name: "create_time", title:'时间'},
    ]
}))

</script>

<style scoped>

</style>
